<!DOCTYPE html>
<html>

<head>
    <meta charset="utf-8">
    <title></title>
    <script src="../js/jquery.js"></script>
    <link href="../style/default.min.css" rel="stylesheet">
    <link rel="stylesheet" href="../style/style.css">
    <script src="../js/highlight.min.js"></script>
    <script>
    hljs.initHighlightingOnLoad();
    </script>
    <script src="../js/initTemp.js"></script>
</head>

<body>
    <div class="qcanvas_lay">
        <canvas id="qcanvas"></canvas>
    </div>
    <div class="code_lay">
        <pre><code class="js">var qcanvas = new Qcanvas({
	 id: 'qcanvas',
        width: 300,
        height: 200
});
var rect = qcanvas.rect({
    start: [0, 10],
    borderColor: 'red',
    fillColor: 'blue',
    drag: false
})

qcanvas.qanimation.animate(rect, {
    start: [0, 10],
}, {
    start: [200, 10],
}, 2, true, 'Back.easeInOut');
		</code>
	</pre>
    </div>
</body>
<script src='Qcanvas-v2.0.js'></script>
<script>
var qcanvas = new Qcanvas({
	 id: 'qcanvas',
        width: 300,
        height: 200
});
var rect = qcanvas.rect({
    start: [0, 10],
    borderColor: 'red',
    fillColor: 'blue',
    drag: false
})

qcanvas.animate(rect, {
    start: [0, 10],
}, {
    start: [200, 10],
}, 2, true, 'Back.easeInOut');
</script>

</html>